package org.example.service;

import org.example.entity.Comment;
import org.example.entity.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "myserviceProvider")
public interface CommentService {

    @PostMapping(value = {"/comment/addComment"})
    public Response addcomemt(@RequestBody Comment comment) throws  Exception;

    @PostMapping(value = {"/comment/getComment"})
    public Response getcomemt(@RequestParam Integer postID,@RequestParam Integer page) throws  Exception;

    @PostMapping(value = {"/comment/starComment"})
    public Response starcomemt(@RequestParam Integer comID) throws  Exception;
}
